<?php if (isset($root) && $root): ?>
	<?php $children_menu = $root->getNode()->getChildren(); ?>
	<?php if($children_menu):?>
	    <?php foreach ($children_menu as $item): ?>
	        <tr>
	            <td><input name="menu_ids[]" type="checkbox" /></td>
	            <td><a href="<?php echo Route::url('menu-list',array('id' => $item->id)); ?>"><?php echo $item->name ?></a></td>
	
	            <td><?php echo $item->link ?></td>
	            
	            <td class="tc">
	            	<?php $status_icon = ($item->active == 1) ? 'tick_circle.png' : 'cross.png'; ?>
	            	<img src="<?php echo $assets_image .'/icons/'. $status_icon; ?>" />
	            </td>
	            <td class="tc">
	                <!-- Icons -->
	                <a href="<?php echo Route::url('menu',array('action' => 'edit', 'id' => $item->id)); ?>" title="Edit"><img src="<?php echo $assets_image . '/icons/pencil.png'; ?>" alt="Edit" /></a>
	                <a href="<?php echo Route::url('menu',array('action' => 'delete','id' => $item->id))?>" title="Delete"><img src="<?php echo $assets_image . '/icons/cross.png'; ?>" alt="Delete" rel="delete" /></a> 
	            </td>
	        </tr>
	    <?php endforeach; ?>
    <?php endif;?>
<?php endif; ?>